﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Engine.Helpers {
    import flash.geom.*;

    public class IntVector2 {

        public var x:int;
        public var y:int;

        public function IntVector2(_arg1:int=0, _arg2:int=0){
            this.x = _arg1;
            this.y = _arg2;
        }
        public function clone():IntVector2{
            return (new IntVector2(this.x, this.y));
        }
        public function add(_arg1:IntVector2):IntVector2{
            var _local2:IntVector2 = new IntVector2((this.x + _arg1.x), (this.y + _arg1.y));
            return (_local2);
        }
        public function subtract(_arg1:IntVector2):IntVector2{
            var _local2:IntVector2 = new IntVector2((this.x - _arg1.x), (this.y - _arg1.y));
            return (_local2);
        }
        public function equals(_arg1:IntVector2):Boolean{
            return ((((this.x == _arg1.x)) && ((this.y == _arg1.y))));
        }
        public function toString():String{
            return (String((((("(x: " + this.x) + ", y: ") + this.y) + ")")));
        }
        public function toPoint():Point{
            return (new Point(this.x, this.y));
        }

    }
}//package Engine.Helpers 
